home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <!--
-
- Copyright 2005-2009 Xmarks Inc.
-
- foxmarks-dialog.xul: implements the main Foxmarks options dialog.
-
- -->
-
- <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css" ?>
- <?xml-stylesheet href="chrome://foxmarks/skin/foxmarks.css" type="text/css" ?>
-
-
- <!DOCTYPE dialog SYSTEM "chrome://foxmarks/locale/foxmarks.dtd">
-
- <prefwindow id="foxmarks-settings"
- title="&dialog.title;"
- windowtype="foxmarks:settings"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- xmlns:html="http://www.w3.org/1999/xhtml"
- buttons="help,accept,cancel"
- ondialogaccept="return dialogMgr.onOK();"
- ondialogcancel="return dialogMgr.onCancel();"
- ondialoghelp="return dialogMgr.onHelp();"
- onload="dialogMgr.onSetup();"
- onunload="dialogMgr.onUnload();"
- onclick="dialogMgr.onClick();"
- persist="screenX screenY" >
-
-
-
- <prefpane id="foxmarks-mainpane" label="&label.status;" flex="1"
- minheight="400"
- image="chrome://foxmarks/skin/images/pane-selector-general.png">
-
- <preferences>
- <preference id="foxmarks-username"
- name="extensions.xmarks.username" instantApply="true"
- type="string" onchange="Xmarks.gSettings.ClearCredentials()" />
- <preference id="foxmarks-autosync"
- name="extensions.xmarks.synchOnTimer" type="bool" />
- <preference id="foxmarks-rememberpassword"
- name="extensions.xmarks.rememberPassword" type="bool"
- instantApply="true" />
- </preferences>
-
- <deck selectedIndex="0" id="foxmarks-statusdeck" >
- <vbox>
- <image id="ping" height="1" width="1" />
- <groupbox>
- <caption label="&label.current.status;" />
- <vbox flex="1" id="statusbox">
- <hbox>
- <image id="status-image" width="36" height="28" />
- <label id="status-text"
- style="font-size: 22px;font-family:arial,sans-serif;"/>
- </hbox>
- </vbox>
- <hbox align="center">
- <label value="&dialog.label.lastsync;" />
- <label id="lastSynchDate" />
- <spacer flex="1" />
- <button label="&dialog.label.syncNow;"
- class="mainpane-button"
- oncommand="dialogMgr.synchronizeNow();" />
- </hbox>
-
- </groupbox>
- <groupbox>
- <caption label="&label.account;" />
- <grid>
- <columns> <column /><column /></columns>
- <rows>
- <row align="center">
- <label control="username"
- value="&dialog.label.username;" />
- <textbox id="username" size="32"
- preference="foxmarks-username" />
- </row>
- <row align="center">
- <label control="password"
- value="&dialog.label.password;" />
- <textbox id="password" type="password" size="32"/>
- </row>
- <row align="center">
- <spacer flex="1" />
- <checkbox id="rememberpw"
- label="&dialog.label.rememberPassword;"
- preference="foxmarks-rememberpassword" />
- </row>
- <row align="center">
- <spacer flex="1" />
- <hbox>
- <label class="text-link"
- onclick='dialogMgr.panes.general.forgotPassword()' value="&dialog.label.forgotPassword;" />
- <spacer flex="1" />
- </hbox>
- </row>
- </rows>
- </grid>
- <hbox >
- <spacer flex="1" />
- <button label="&dialog.label.runWizard;"
- class="mainpane-button"
- oncommand="dialogMgr.runSetupWizard();" />
- </hbox>
- </groupbox>
- <vbox flex="1" align="end">
- <label id="version" />
- </vbox>
- </vbox>
- <vbox>
- <description style="width: 20em; margin-bottom: 1.5em; padding: 4px;font-size: 14px;">
- &label.syncdisabled;
- </description>
- <hbox>
- <spacer flex="1"/>
- <button flex="0"
- label="&dialog.label.runWizard;" class="mainpane-button"
- oncommand="dialogMgr.runSetupWizard();" />
- </hbox>
- </vbox>
- </deck>
- </prefpane>
-
- <prefpane id="foxmarks-syncpane" label="&label.sync;" flex="1"
- image="chrome://foxmarks/skin/images/pane-selector-types.png">
- <preferences>
- <preference id="foxmarks-synconshutdown"
- name="extensions.xmarks.syncOnShutdown" type="int" />
- <preference id="foxmarks-askfirst" type="bool"
- name="extensions.xmarks.syncOnShutdownAsk" />
- </preferences>
- <vbox style="padding-bottom: 8em;">
- <groupbox flex="1">
- <caption label="&label.sync.caption;" />
- <checkbox id="sync-bookmarks" label="&label.sync.bookmarks;"
- oncommand="dialogMgr.panes.sync.handleBookmarkSync();" />
- <hbox>
- <checkbox id="sync-passwords" label="&label.sync.passwords;"
- oncommand="dialogMgr.panes.sync.handlePasswordSync();" />
- <button id="sync-resetpin"
- label="&label.sync.resetpin;"
- oncommand="dialogMgr.panes.sync.doResetPIN();" />
- <button id="sync-deletepasswords"
- label="&label.sync.deletepasswords;"
- oncommand="dialogMgr.panes.sync.doDeletePasswords();" />
- </hbox>
- <label id="onlyFF3" value="&label.sync.onlyff3;" />
- </groupbox>
- <groupbox flex="1">
- <caption label="&label.synchronization;" />
- <hbox align="center">
- <checkbox id="autosync" label="&dialog.label.ontimer;"
- preference="foxmarks-autosync" />
- <spacer flex="1" />
- </hbox>
- <checkbox id="synconshutdown"
- label="&dialog.label.synconshutdown;"
- onsynctopreference="return dialogMgr.panes.general.syncOnShutdownToPreference();"
- oncommand="dialogMgr.panes.general.syncOnShutdownChanged()"
- preference="foxmarks-synconshutdown" />
- <hbox align="center">
- <spacer style="width: 1.4em" />
- <checkbox id="askfirst" label="&dialog.label.askfirst;"
- preference="foxmarks-askfirst" />
- </hbox>
- </groupbox>
- </vbox>
- </prefpane>
-
- <prefpane id="foxmarks-restorepane" label="&label.restore;" flex="1"
- image="chrome://foxmarks/skin/images/pane-selector-restore.png" >
- <description id="foxmarks-restoreprofile" hidden="true"
- style="width: 20em; margin-bottom: 1.5em; padding: 4px;">
- &restore.norestoreprofile;
- </description>
- <description id="foxmarks-restorenewuser" hidden="true"
- style="width: 20em; margin-bottom: 1.5em; padding: 4px;">
- &restore.norestorenewuser;
- </description>
- <description id="foxmarks-restoreownuser" hidden="true"
- style="width: 20em; margin-bottom: 1.5em; padding: 4px;">
- &restore.norestoreownuser;
- </description>
- <description id="foxmarks-restoredesc"
- style="width: 20em; margin-bottom: 1.5em; padding: 4px;">
- &desc.restore;
- </description>
- <groupbox id="foxmarks-restorebox">
- <caption label="&restore.boxlabel;" />
- <listbox id="foxmarks-restorelist" height="190"
- seltype="single" disabled="true" >
- <listitem>
- <listitem
- class="listcell-iconic" label="&label.restore.loading;"
- image="chrome://foxmarks/skin/images/Throbber-small.gif"
- />
- </listitem>
- </listbox>
- <hbox>
- <spacer flex="1"/>
- <button id="foxmarks-viewrestore" disable="true"
- label="&label.restore.view;"
- oncommand="dialogMgr.panes.restore.viewRestore();" />
- <button id="foxmarks-dorestore" disable="true"
- label="&label.restore.restore;"
- oncommand="dialogMgr.panes.restore.restore();" />
- </hbox>
- </groupbox>
- <label value="" />
- <label value="" />
- </prefpane>
- <prefpane id="foxmarks-profilepane" label="&label.profiles;" flex="1"
- image="chrome://foxmarks/skin/images/pane-selector-profiles_TEMP.png">
- <description style="width: 20em; margin-bottom: 1.5em; padding: 4px;">
- &desc.profile;
- </description>
- <hbox style="padding-bottom: 8em;">
- <groupbox flex="1">
- <hbox align="center">
- <label value="&label.manageprofiles;" />
- <spacer flex="1" />
- <button id="launchMyProfiles" class="manage-profile-button"
- label="&label.profile.my;"
- oncommand="dialogMgr.panes.profile.myFoxmarks();" />
- </hbox>
- <hbox align="center">
- <label value="&label.profilechoice;" />
- <label id="profileName" />
- <spacer flex="1" />
- <button id="profileChangeButton"
- class="manage-profile-button"
- label="&label.profile.change;"
- oncommand="dialogMgr.panes.profile.changeProfile();" />
- </hbox>
- </groupbox>
- </hbox>
- </prefpane>
-
- <prefpane id="foxmarks-discoverypane" label="&label.discovery;" flex="1"
- image="chrome://foxmarks/skin/images/pane-selector-discovery.png">
- <description style="width: 30em;">
- &desc.discover;
- </description>
- <groupbox style="height: 280px;">
- <hbox align="center">
- <vbox>
- <checkbox id="searchboost"
- label="&label.searchboost;" oncommand=
- "dialogMgr.panes.discover.onSearchBoostChanged()" />
-
- <description style="padding-left: 22px; width: 25;">
- &desc.searchboost;
- </description>
- <checkbox id="siteboost"
- oncommand="dialogMgr.panes.discover.onOK();"
- label="&label.siteboost;" />
- <description style="padding-left: 22px; width: 25em;">
- &desc.siteboost;
- </description>
- <checkbox id="tagsuggest"
- oncommand="dialogMgr.panes.discover.onOK();"
- label="&label.tagsandreviews;" />
- <description style="padding-left: 22px; width: 25em;">
- &desc.tagsandreviews;
- </description>
- </vbox>
- </hbox>
- </groupbox>
- </prefpane>
-
- <prefpane id="foxmarks-advpane" label="&label.advanced;" flex="1"
- image="chrome://foxmarks/skin/images/pane-selector-advanced.png">
- <preferences>
- <preference id="foxmarks-encrypt"
- name="extensions.xmarks.securityLevel" type="int" instantApply="true" />
- <preference id="foxmarks-enablelogging"
- name="extensions.xmarks.enableLogging" type="bool" />
- <preference id="foxmarks-useownserver"
- name="extensions.xmarks.useOwnServer" type="bool"
- onchange="dialogMgr.panes.advanced.useOwnServerChanged()" />
- <preference id="foxmarks-url"
- name="extensions.xmarks.url-bookmarks"
- instantApply="true" type="string" />
- <preference id="foxmarks-passwordurl"
- name="extensions.xmarks.url-passwords"
- instantApply="true" type="string" />
- </preferences>
- <groupbox>
- <caption label="&label.security;" />
- <hbox align="center">
- <label control="encrypt" value="&label.encrypt;" />
- <menulist id="encrypt" preference="foxmarks-encrypt" >
- <menupopup>
- <menuitem label="&label.noencrypt;" value="-1" />
- <menuitem label="&label.passwordonly;" value="0" />
- <menuitem label="&label.encryptall;" value="1" />
- </menupopup>
- </menulist>
- </hbox>
- </groupbox>
- <groupbox>
- <caption label="&label.manualoverwrite;" />
- <hbox align="center">
- <label value="&label.forceoverwriteserver;" />
- <spacer flex="1" />
- <button label="&label.upload;" class="manual-overwrite-button"
- oncommand="dialogMgr.uploadNow();" flex="0" id="upload" />
- </hbox>
- <hbox align="center">
- <label value="&label.forceoverwritelocal;" />
- <spacer flex="1" />
- <button label="&label.download;"
- class="manual-overwrite-button"
- oncommand="dialogMgr.downloadNow();" flex="0" />
- </hbox>
- </groupbox>
- <groupbox flex="1">
- <caption label="&label.logging;" />
- <hbox align="center">
- <checkbox label="&label.enablelogging;"
- preference="foxmarks-enablelogging" />
- <spacer flex="1" />
- <button label="&label.showlogfile;"
- oncommand="dialogMgr.panes.advanced.displayLogFile()" />
- </hbox>
- </groupbox>
- <groupbox>
- <caption label="&label.server;" />
- <hbox align="center">
- <checkbox id="useown" label="&label.useownserver;"
- oncommand="return dialogMgr.panes.advanced.useOwnServer();"
- preference="foxmarks-useownserver" />
- </hbox>
- <hbox align="center">
- <spacer style="width: 1.275em" />
- <label id="useown-url-label" value="&label.url;" />
- <textbox id="url" flex="1" preference="foxmarks-url" />
- </hbox>
- <hbox align="center">
- <spacer style="width: 1.275em" />
- <label id="useown-passwordurl-label"
- value="&label.passwordurl;" />
- <textbox id="passwordurl" flex="1"
- preference="foxmarks-passwordurl" />
- </hbox>
- <vbox align="left">
- <label class="text-link" style="padding-left: 16px;"
- onclick='dialogMgr.panes.advanced.moreOwnServer();'
- value="&label.ownserver.moreinfo;" />
- </vbox>
- </groupbox>
- <label value="" />
- </prefpane>
-
- <script src="foxmarks-dialog.js" />
- <script src="foxmarks-settings.js" />
- <script src="foxmarks-uitools.js" />
-
- </prefwindow>
-